﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using System.Runtime.Serialization;
using Fixx.DTO.Parser;

namespace Fixx.DTO
{
	[Serializable, DataContract(Name="user", Namespace="")]
	public class FixxUser : IFixxDalObject
	{
		[DataMember(Name = "id", IsRequired = true, Order=1)]
		public int Id { get; set; }
		[DataMember(Name = "firstName", IsRequired = false, Order = 2)]
		public string FirstName { get; set; }
		[DataMember(Name = "lastName", IsRequired = false, Order=3)]
		public string LastName { get; set; }
		[DataMember(Name = "username", IsRequired = true, Order = 4)]
		public string Username { get; set; }
		[DataMember(Name = "email", IsRequired = true, Order = 5)]
		public string Email { get; set; }
		[DataMember(Name = "phoneNumber", IsRequired = false, Order = 6)]
		public string PhoneNumber { get; set; }
		[DataMember(Name = "website", IsRequired = false, Order = 7)]
		public string Website { get; set; }
		[DataMember(Name = "enabled", IsRequired = false, Order = 8)]
		public bool IsEnabled { get; set; }

		public FixxUser() { }
		public string ToXmlString () { return string.Empty;}		
	}
}
